package com.shop.shoppojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品实体类
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Goods implements Serializable {
    // 序列化版本号
    @Serial
    private static final long serialVersionUID = 1L;

    //主键
    private Long id;

    //商品名字
    private String goodsName;

    //商品图片
    private String goodsImage;

    //商品最低价格
    private BigDecimal goodsPriceMin;

    //商品最高价格
    private BigDecimal goodsPriceMax;

    //仓库库存
    private Integer stockTotal;

    //商品销量
    private Integer goodsSales;
}
